package com.woniu.secondhand.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author HMMT
 * @since 2023-05-20
 */
@Getter
@Setter
@TableName("t_secondhand_product")
@ApiModel(value = "SecondhandProduct对象", description = "")
public class SecondhandProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品标题")
    private String title;

    @ApiModelProperty("商品描述")
    private String content;

    @ApiModelProperty("联系方式")
    private String mobile;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("提供者id")
    private Integer producerId;

    @ApiModelProperty("类型 1出售 2求购")
    private Byte type;

    @ApiModelProperty("分类id")
    private Integer categoryId;

    @ApiModelProperty("包邮状态 0包邮 1不包邮")
    private Byte deliveryStatus;

    @ApiModelProperty("删除状态 0未删除 1删除")
    private Byte deleteStatus;

    @ApiModelProperty("购买状态 0未购买 1购买")
    private Byte buyStatus;

    @ApiModelProperty("审核状态 0未审核 1审核")
    private Byte verifyStatus;

    @ApiModelProperty("图片")
    private String pic;

    @ApiModelProperty("排序")
    private Integer seq;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
